package com.gz.moreaseManager.modules.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;
import java.util.Date;



import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 门店信息
 * </p>
 *
 * @author wike
 * @since 2019-02-26
 */
@Data
@Accessors(chain = true)
public class Store extends Model<Store> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 门店名称
     */
    @TableField("name")
    private String name;

    /**
     * 电话
     */
    @TableField("tel")
    private String tel;

    /**
     * 省份ID
     */
    @TableField("pro_name")
    private String proName;

    /**
     * 城市ID
     */
    @TableField("city_name")
    private String cityName;

    /**
     * 详细地址
     */
    @TableField("addr")
    private String addr;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField("create_person")
    private String createPerson;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
